import Vue from 'vue'
import Router from 'vue-router'

import Index from '@/views/home/Index'
import AddCourseContent from '@/views/home/AddCourseContent'
import CourseContentList from '@/views/home/CourseContentList'
import EditCourseContent from '@/views/home/EditCourseContent'
import CourseList from '@/views/home/CourseList'
import AddCourse from '@/views/home/AddCourse'
import EditCourse from '@/views/home/EditCourse'
import login from '@/views/login/login'

Vue.use(Router)

export default new Router({
    mode:'history',
    routes: [
        {
            path: '/',
            name:'Index',
            component: Index
        },
        {
            path: '/CourseContentList',
            name:'CourseContentList',
            component: CourseContentList
        },
        {
            path: '/AddCourseContent',
            name:'AddCourseContent',
            component: AddCourseContent
        },
        {
            path: '/EditCourseContent',
            name:'EditCourseContent',
            component: EditCourseContent
        },
        {
            path: '/CourseList',
            name:'CourseList',
            component: CourseList
        },
        {
            path: '/AddCourse',
            name:'AddCourse',
            component: AddCourse
        },
        {
            path: '/EditCourse',
            name:'EditCourse',
            component: EditCourse
        },
        {
            path: '/login',
            name:'login',
            component: login
        }

    ]
})
